﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SwitchSend : MonoBehaviour {
    public string tMsg;
    public string fMsg;
    public bool Send
    {
        set {

            print(value.ToString());
            if (value)
            {
                MCNetSocket.BroadCast(tMsg);
            }
            else
            {
                MCNetSocket.BroadCast(fMsg);
            }
        }
    }
}
